package com.yang.qqclient.service;

import java.util.HashMap;

/**
 * @Description: 管理客户端连接到服务器的线程类
 * @Author: YANG QIANG
 * @Time: 2022-12-20 21:08
 */
public class ManageClientConnectServerThread {
    // 存放客户端连接服务端的线程
    private static HashMap<String, ClientConnectServerThread> hm = new HashMap<>();

    public static void addClientConnectServerThread(String userId, ClientConnectServerThread clientConnectServerThread){
        hm.put(userId, clientConnectServerThread);
    }

    public static ClientConnectServerThread getClientConnectServerThread(String userId){
       return hm.get(userId);
    }
}
